package com.biscuit.page.basicservice.remote.api;

import com.biscuit.page.basicservice.api.ISearchRemote;
import com.biscuit.common.base.BaseResponse;
import com.biscuit.common.base.BaseResponseVoid;
import com.biscuit.page.basicservice.api.model.request.search.SearchSuggestAReq;
import com.biscuit.page.basicservice.api.model.response.search.SearchSuggestAResp;
import com.biscuit.page.basicservice.service.SearchService;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author mazihao
 * @createTime 2024/3/29 10:43
 */
@RestController
public class SearchRemoteImpl implements ISearchRemote {

    @Resource
    private SearchService searchService;

    @Override
    public BaseResponse<SearchSuggestAResp> suggest(SearchSuggestAReq req) {
        return this.searchService.suggest(req);
    }

    @Override
    public BaseResponse<BaseResponseVoid> updateLog(Long id, String keyword) {
        return this.searchService.updateLog(id, keyword);
    }

}
